﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameSchool.Models;

namespace GameSchool.DAL
{
    public interface IExamRepository : IDisposable
    {
        // Nánari upplýsingar um hvernig Repository patternið virkar er á:
        // http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

        bool CheckIfAnswerIsCorrect(int examQuestionAnswerId);
        Course GetCourseById(int courseId);
        Exam GetExamById(int examId);
        ExamHistory GetExamHistoryById(int examHistoryId);
        List<vExamsStudent> GetExamsStudent(int courseId);
        List<vExamsStudent> GetExamsStudent(int courseId, Guid studentUserId);
        List<vExamsTeacher> GetExamsTeacher(int courseId, Guid teacherUserId);
        void InsertExam(Exam exam);
        void InsertExamHistoryAnswers(ExamHistory examHistory);
        void DeleteExam(int examId);
        void UpdateExam(Exam exam);
        void Save();
    }
}
